<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>
<?php get_header(); ?>


<div class="main_big_cat_top_3">
</div>

<div class="main_cats_blog" id="archivelist">


<div class="gallery_bg">
			
						
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}

			 $string = get_post_meta($post->ID, 'yt', true);?>

		 <?php if ( $string = get_post_meta($post->ID, 'yt', true)) { ?>
		 
			<div class="vid_frame" >
		

				
				<div class="vid_thumb">
				
					<div class="vid_inner_thumb" style="background: url(http://img.youtube.com/vi/<?php $url = parse_url($string);parse_str($url['query']); echo $v;?>/default.jpg) no-repeat center center; ">
					
						<div id="vid_post" class="MooTrans">
					
							<div class="vid_permalink"><a onmouseover="Tip('<strong><?php the_title(); ?></strong></br>Posted by <?php the_author(); ?> on <?php the_time('M j, Y') ?> with <?php comments_number('0 responses', '1 response', '% responses' );?>')" onmouseout="UnTip()"   href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a>
							</div>	
						
							<div class="vid_gallery"> <a onmouseover="Tip('Open Video')" onmouseout="UnTip()" rel="lightbox[480 380]" href="http://www.youtube.com/watch?v=<?php $url = parse_url($string);parse_str($url['query']); echo $v;?>" ></a>
							</div>
						
						</div>
						
					</div>
					
				</div>
				
			</div>
			<?php } ?>
			
			 <?php if ( $vimeoidexe = get_post_meta($post->ID, 'vim', true)) { ?>
				 
			 
			 <div class="vid_frame" >
		

				
				<div class="vid_thumb">
				
					<div class="vid_inner_thumb" style="background: url(<?php $url = 'http://vimeo.com/api/v2/video/' . $vimeoidexe . '.php';$contents = @file_get_contents($url);$thumb = @unserialize(trim($contents));echo $thumb[0][thumbnail_medium];?>) no-repeat center center; ">
					
						<div id="vid_post" class="MooTrans">
					
							<div class="vid_permalink"><a onmouseover="Tip('<strong><?php the_title(); ?></strong></br>Posted by <?php the_author(); ?> on <?php the_time('M j, Y') ?> with <?php comments_number('0 responses', '1 response', '% responses' );?>')" onmouseout="UnTip()"   href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a>
							</div>	
						
							<div class="vid_gallery"> <a onmouseover="Tip('Open Video')" onmouseout="UnTip()" rel="lightbox[480 380]" href="http://www.vimeo.com/<?php echo $vimeoidexe; ?>" ></a>
							</div>
						
						</div>
						
					</div>
					
				</div>
				
			</div>
			 
			 <?php } ?>
				<?php endwhile; ?>
	
	<div class="clear">
	</div>
	

	

	
</div>
</div>	
	<div class="main_left_bottom_3"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
	</div>
<?php get_footer(); ?>
